
#pragma once


#include "header.h"

#include "D3DXSprite.h"
#include "GameState.h"
#include "FontRenderer.h"
#include <string>
#include "list"


using namespace cgMath;
using namespace cgGame;
using namespace std;


class CWinGameScreen
{
public:
	CWinGameScreen(HWND hwnd, LPDIRECT3DDEVICE9 d3dDevice);
	~CWinGameScreen();

	bool				InitScreenObjects();

	void				RenderScore(float timeDelta);
	void				RenderObjects(float timeDelta);


private:
	HWND				m_hWnd;
	LPDIRECT3DDEVICE9	m_pD3DDevice;

	POINT				m_currMousrPos;

	//CD3DXSprite*		m_pNextLevelSprite;
	//CD3DXSprite*		m_pPauseSprite;

	CD3DXSprite*		m_pStartSprite;
	CD3DXSprite*		m_pStartOverSprite;
	CD3DXSprite*		m_pStartDownSprite;

	//animal sprite
	CD3DXSprite*		m_pAnimalNormalSprite;
	CD3DXSprite*		m_pAnimalEdibleSprite;
	CD3DXSprite*		m_pAnimalBigSprite;
	CD3DXSprite*		m_pAnimalFastSprite;

	float				m_countDownNum;
	float				m_countDownInterval;
	int					m_numKillAnimBig;
	int					m_numKillAnimFast;
	int					m_numKillAnimEat;
	int					m_numKillAnimNormal;
	string				m_textOutStr;
	CFontRenderer*		m_pFontRender;

	//CD3DXSprite*		m_pNextLevelSprite;
	//CD3DXSprite*		m_pPrevlevelSprite;

	CGameState*			m_pGameState;

	//bool				m_leftArrowKeyUp;
	//bool				m_rightArrowKeyUp;
	bool				m_lButtonUp;

	CD3DXSprite*		m_pBgSprite;
};